package com.itheima;

import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

public class HttpTest {

    public static void main(String[] args) {
        RestTemplate restTemplate = new RestTemplate();
        //httpclient
        ResponseEntity<String> result = restTemplate.getForEntity("http://localhost:8085/sayHello/robin",String.class);
        System.out.println(result.getBody());
    }

}
